﻿
using sharpxbot.Plugins.Context;
namespace sharpxbot.Core.Plugins.Muc
{
    public class SuspendRoomCommand : IMucCommand
    {
        public string RoomBareJid { get; set; }

        public int Timeout { get; set; }

        #region IMucCommand Members

        public MucCommandEnum CommandType { get; set; }

        public void Execute(IPluginContext context)
        {
            context.GroupChats.LeaveRoom(RoomBareJid, Timeout);
        }

        #endregion
    }
}
